package org.jeecg.modules.online.cgform.converter.p011b;

import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.online.cgform.converter.p010a.ForeseeConvert;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;

/* renamed from: org.jeecg.modules.online.cgform.converter.b.i */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/converter/b/i.class */
public class PcaConverter extends ForeseeConvert {

    /* renamed from: c */
    ProvinceCityArea f193c;

    public PcaConverter(OnlCgformField onlCgformField) {
        this.f174a = onlCgformField.getDbFieldName();
        this.f193c = (ProvinceCityArea) SpringContextUtils.getBean(ProvinceCityArea.class);
    }

    @Override // org.jeecg.modules.online.cgform.converter.p010a.ForeseeConvert, org.jeecg.modules.online.cgform.converter.FieldCommentConverter
    public String converterToVal(String txt) {
        if (oConvertUtils.isEmpty(txt)) {
            return null;
        }
        return this.f193c.getCode(txt);
    }

    @Override // org.jeecg.modules.online.cgform.converter.p010a.ForeseeConvert, org.jeecg.modules.online.cgform.converter.FieldCommentConverter
    public String converterToTxt(String val) {
        if (oConvertUtils.isEmpty(val)) {
            return null;
        }
        return this.f193c.getText(val);
    }
}
